package cn.kgc.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 商品分类
 * </p>
 *
 * @author qf
 * @since 2021-08-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Classify对象", description="商品分类")
public class Classify implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "类型名称")
    @TableField("classifyName")
    private String classifyName;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "大图标")
    @TableField("bigIcon")
    private String bigIcon;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "状态（0:下架,1:上架）")
    private Integer status;

    @ApiModelProperty(value = "创建人")
    @TableField("createdUserId")
    private Long createdUserId;

    @ApiModelProperty(value = "修改人")
    @TableField("updatedUserId")
    private Long updatedUserId;

    @ApiModelProperty(value = "创建时间")
      @TableField(value = "creatdTime", fill = FieldFill.INSERT)
    private Date creatdTime;

    @ApiModelProperty(value = "修改时间")
      @TableField(value = "updatedTime", fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableField("isDelete")
    private Integer isDelete;


}
